Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

chore(docs-app): ensure ToC links contain the path #16610

Merged
merged 1 commit into from
Jun 22, 2018

Conversation

petebacondarwin
Copy link
Contributor

Without the path the browser address changes so the hash
fragment is directly on the base url. Then on refresh the
browser navigates to an invalid page.

Closes #16608

@mgol
Copy link
Member

mgol commented Jun 22, 2018

Refreshes are fine as AngularJS updates the URL correctly. :) It’s just the native interpretation that breaks which affects manual, non-AngularJS navigation like opening the link in a new tab or copying it & pasting.

I’d tweak the commit message as it’s not correct now.

@mgol
Copy link
Member

mgol commented Jun 22, 2018

Other than that the patch looks good to me.

Without the path the link is always pointing to the
root page, rather than the current page, which means
that copying the link address or opening the page in
a new tab is broken.

Closes angular#16608
@petebacondarwin petebacondarwin merged commit 9307ccf into angular:master Jun 22, 2018
@petebacondarwin
Copy link
Contributor Author

petebacondarwin commented Jun 22, 2018

Landed and cherry picked to 1.6.x and 1.7.x for good measure.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants